/*
 * Copyright (c) 2006, 2022, webrx.cn All rights reserved.
 *
 */
package cn.webrx.servies;

import cn.webrx.entity.Book;
import lombok.Data;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Service;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;


/**
 * <p>Project: spring2022 - Db
 * <p>Powered by webrx On 2022-03-18 09:08:16
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
//@Service //@Lazy(true)
    @Data
public class Db {
    private int id;
    private Book book;

    public Db(){
        System.out.println("Db()构造方法");
    }

    public Db(int id){
        System.out.println("Db(int id)构造方法");
    }

    //@PostConstruct
    public void a(){
        System.out.println("a............");
    }

    //@PostConstruct
    public void b(){
        System.out.println("b..........");
    }

    //@PostConstruct
    public void c(){
        System.out.println("c..............");
    }


    //@PreDestroy
    public void close(){
        System.out.println("close()");
    }

    //@PreDestroy
    public void destroy(){
        System.out.println("destroy()");
    }
}
